//
//  JoinSucceedViewController.m
//  消费100
//
//  Created by eliot on 16/3/31.
//  Copyright © 2016年 aleven. All rights reserved.
//

#import "JoinSucceedViewController.h"

@interface JoinSucceedViewController ()


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *iconLeft;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *bmyDetailBtnW;

@property (weak, nonatomic) IBOutlet UIButton *bmyDetailBtn;


@property (weak, nonatomic) IBOutlet UILabel *deductionLb;

@property (weak, nonatomic) IBOutlet UILabel *joinCountLb;

@property (weak, nonatomic) IBOutlet UILabel *surplusLb;



@end

@implementation JoinSucceedViewController

+(JoinSucceedViewController*)CreatJoinSucceedViewController{
    
    UIStoryboard *story=[UIStoryboard storyboardWithName:@"Main" bundle:nil];
    JoinSucceedViewController *JoinSucceedViewController=[story instantiateViewControllerWithIdentifier:@"JoinSucceedViewController"];
    return JoinSucceedViewController;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    if (Width <= 320) {
        
    }else {
        self.iconLeft.constant = Width / 2 - 30;
    }
   
    self.bmyDetailBtnW.constant = 103 / 320.0 *Width;
    
    self.iconLeft.constant = Width / 2 - 55;
    self.bmyDetailBtnW.constant = 103 / 320.0 *Width;
    
    self.title = @"参与成功";
    /** 设置导航啦样式*/
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSFontAttributeName:[UIFont systemFontOfSize:19],NSForegroundColorAttributeName:[UIColor whiteColor]}];
    self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
    [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
    self.navigationController.navigationBar.translucent = NO;
    self.bmyDetailBtn.layer.cornerRadius = 4;
    self.bmyDetailBtn.layer.masksToBounds = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


/** 点击查看参与记录*/
- (IBAction)clickHistoryBtn:(id)sender {
    
    
    
}


//创建模态导航控制器
-(void)creatNav:(UIViewController *)view{
    
    UINavigationController *nav=[[UINavigationController alloc] initWithRootViewController:view];
    nav.navigationBar.barTintColor = [UIColor colorWithRed:254/255.0 green:154/255.0 blue:37/255.0 alpha:1];
    view.navigationItem.leftBarButtonItem=[[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"icon_back"] style:UIBarButtonItemStylePlain target:self action:@selector(dismiss)];
    [self presentViewController:nav animated:YES completion:nil];
}

- (void)dismiss {
    [self dismissViewControllerAnimated:YES completion:nil];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
